package com.kingmed.kmss.admin.modules.sys.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.kingmed.kmss.admin.modules.sys.model.SysDataDict;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 系统数据字典表 服务类
 * </p>
 *
 * @author WYL
 * @since 2022-12-14
 */
public interface SysDataDictService extends IService<SysDataDict> {

    int create(List<SysDataDict> dataDictList);

    int update(List<SysDataDict> dataDictList);

    int delete(List<Long> dataDictIdList);

    void deleteByCode(String dictCode);

    Page<SysDataDict> list(String dictNameKey, String dictValueKey, Integer pageSize, Integer pageNum);

    Page<SysDataDict> listCodes(String dictNameKey, Integer pageSize, Integer pageNum);

    List<SysDataDict> query(SysDataDict sysDataDict);

    List<SysDataDict> queryByCode(String dictCode);

    Map<String, String> queryMapByCode(String dictCode);

    Map<String, List<SysDataDict>> queryByCodeBatch(List<String> dictCodes);

    List<SysDataDict> queryByCodeKey(String dictCode, String dictKey);
}
